﻿@model Model.User

@{
    ViewBag.Title = "UserUpdate";
}

<h2>UserUpdate</h2>

@using (Html.BeginForm())
{    
    @Html.ValidationSummary(true)

    <div class="">
        @Html.LabelFor(m => m.Name)
        @Html.EditorFor(m => m.Name)
        @Html.ValidationMessageFor(m => m.Name)
    </div> 
    <div class="">
        @Html.LabelFor(m => m.Email)
        @Html.EditorFor(m => m.Email)
    </div> 
    <div class="double">
        @Html.LabelFor(m => m.Password)
        @Html.EditorFor(m => m.Password)
    </div> 
    <input type="submit" value="Modifier" class="submit" />
    <button onclick="@Url.Action(MVC.Admin.Users())">Annuler</button>
    
 }